#ifndef TAG_H
#define TAG_H
#include <map>
#include <string>
#include <tinyxml.h>
//#include <istream>
//#include <ostream>
#include "TagHeader.h"
namespace swfstream {
class Tag {
public:
	Tag();
	static Tag* from_file(FILE* f);
	virtual void print();
	TagHeader *header;
	virtual TiXmlElement* toTiXmlElement();
	static std::string getTypeName(int type);
//	std::istream& operator >>(std::istream& is);
//	std::ostream& operator <<(std::ostream& os);
private:
	static std::map<int, std::string> types;
};
}
#endif
